@import './theme.css';

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0 8px;
    padding-top: var(--top-inset);
    height: 64px;
    width: calc(100% - 16px);
    background-color: var(--md-sys-color-surface);
    transition: background-color 0.2s ease;
    z-index: 3;
    user-select: none;
}

.header-bg.scroll {
    background-color: var(--md-sys-color-surface-container);
}

.search-input {
    position: absolute;
    height: 64px;
    top: calc(var(--top-inset));
    left: 10px;
    min-width: 200px;
    width: 70%;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

[dir="rtl"] .search-input {
    left: unset;
    right: 10px;
}

.search-input.show {
    width: calc(100% - 64px);
    opacity: 1;
    pointer-events: auto;
}

.search-bg {
    transition: opacity 0.3s ease;
}

.search-bg.hide {
    opacity: 0;
}

#title {
    padding-left: 8px;
    font-size: 22px;
}

[dir="rtl"] #title {
    padding-left: unset;
    padding-right: 5px;
}

.search-button {
    margin-left: auto;
    --md-icon-button-icon-color: var(--md-sys-color-on-surface);
}

[dir="rtl"] .search-button {
    margin-left: unset;
    margin-right: auto;
}

#language-menu {
    white-space: nowrap;
}

[dir="ltr"] .rtl-icon {
  display: none;
}

[dir="rtl"] .ltr-icon {
  display: none;
}

.help-button {
    --md-icon-button-icon-color: var(--md-sys-color-on-surface-variant);
}

.menu {
    position: relative;
}

.menu md-menu {
    --md-sys-shape-corner-extra-small: 24px;
    max-width: 60vw;
}

.menu md-sub-menu md-menu {
    --md-sys-shape-corner-extra-small: 8px;
    max-width: 40vw;
}

.menu md-menu-item {
    width: max-content;
    min-width: 100%;
    max-width: 100%;
}

.menu-item-button-container {
    padding: 2px 4px;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 4px;
    box-sizing: border-box;
}

#menu-button {
    --md-icon-button-icon-color: var(--md-sys-color-on-surface);
}

#menu-options {
    max-height: calc(100vh - var(--top-inset) - var(--bottom-inset) - 80px);
}

#select-denylist,
#security-patch {
    display: none;
}

.instruction {
    margin-bottom: 32px;
}

.instruction p {
    margin: 8px 0;
}

.instruction-header {
    font-size: 1.3em;
}